<?php 
	session_start();
	
 	$index='index.php';

	if (!isset($_SESSION['login']))  {
	 header(sprintf("Location: %s",$index));
	 exit;
	}
	
	include ("config.inc.php");

	
?>
<html>
<head>
<title>STI - Suporte T&eacute;cnico em Inform&aacute;tica</title>

<script type="text/javascript">
function ligar_relogio(){
UR_Nu = new Date;
UR_Indhold = showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds());
document.getElementById("relogio").innerHTML = UR_Indhold;
setTimeout("ligar_relogio()",1000);
}
function showFilled(Value){return (Value > 9) ? "" + Value : "0" + Value;}
</script>

<script>
	function mascara(src, mask){
	var i = src.value.length;
	var saida = mask.substring(0,1);
	var texto = mask.substring(i)
	if (texto.substring(0,1) != saida)
	{	
	src.value += texto.substring(0,1);
	}
	} 
</script>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="styles.css" rel="stylesheet" type="text/css" />

	<script type='text/javascript' src='relojdhtml.js'></script>

</head>
<body>
<p align=center><img src="imagens/cbtu-stujop.png"/></p>
<table align="center" width="60%">
<tr>
<td align="left">Jo&atilde;o Pessoa/PB</td>
<td align="right"><?php echo date("d/m/Y");?> <span><b><span id="relogio"></b></span><script>ligar_relogio();</script></span> </td>
</tr>
</table>
<hr />
<br />
<table align="center" border="0">
<tr>                             
 <td><b>     
    <?php    
     $hr = date(" H ");               
     if($hr >= 12 && $hr<18) {        
     $resp = "Boa tarde.";}            
     else if ($hr >= 0 && $hr <12 ){  
     $resp = "Bom dia.";}
     else {
     $resp = "Boa noite.";}
     echo "$resp ";
?>
Escolha sua op&ccedil;&atilde;o.
</b><br></td>
</tr>
</table>
<br>

<table align="center" width="40%" border="0">
<tr>
<td align="center"><a href="novo.php"><img src="imagens/novo.png" width="48" height="48"></a></td>
<td><a href="novo.php">Solicitar suporte</a></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td align="center"><a href="procurar.php"><img src="imagens/procurar.png" width="48" height="48"></a></td>
<td><a href="procurar.php">Verificar suas solicita&ccedil;&otilde;es</a></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td align="center"><a href="imprimir.php"><img src="imagens/imprimir.png" width="48" height="48"></a></td>
<td><a href="imprimir.php">Imprimir protocolo</a></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td align="center"><a href="sair.php"><img src="imagens/sair.png" width="48" height="48"></a></td>
<td><a href="sair.php">Sair</a></td>
</tr>
</table>
</body>
</html>
